

module star(r0=3, r1=5, n=5){
	union(){
		for (i=[1:n]){
			polygon([[0,0],
				[r0*cos(i * 360 / n), r0*sin(i * 360 / n)],
				[r1*cos(i * 360 / n - 180/n), r1*sin(i * 360 / n - 180/n)],
				[r0*cos((i-1) * 360 / n), r0*sin((i-1) * 360 / n)],
				[r0*cos(i * 360 / n), r0*sin(i * 360 / n)]]);
		}
	}
}

module pop_bumper(R, r, height){
	color([1,1,1])
	translate([0,0,0.4])
	intersection(){
		difference(){
			cylinder(h=height, r1=R, r2=r);
			cylinder(h=height+1, r=r);
		}
		linear_extrude(height=height+1)
		star(r0=r+5, r1=R-1, n=12);
	}

	color([0,0.6,0])
	difference(){
		cylinder(h=height, r1=R, r2=r);
		translate([0, 0, height-1])
		cylinder(h=10, r=r-2);
	}
}


pop_bumper(40, 18, 15);